package com.ukao.pad.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import com.ukao.pad.R;
import com.ukao.pad.bean.PayInfoBean;
import com.ukao.pad.widget.FlowLayout;

import java.util.List;

/**
 * Created by ukaodev on 2017/6/14.
 */

public class PayTagAdapter extends TagAdapter<PayInfoBean.PaySignListBean> {

     private   Context  mContext;

    public PayTagAdapter(Context  mContext,List<PayInfoBean.PaySignListBean> datas) {
        super(datas);
        this.mContext=mContext;
    }

    @Override
    public View getView(FlowLayout parent, int position, PayInfoBean.PaySignListBean item) {
        TextView mTextView=(TextView)LayoutInflater.from(mContext).inflate(R.layout.base_button_tag,
                parent, false);
        mTextView.setText(item.getName());
        return mTextView;
    }
}
